package com.wisdom.disposition.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 11951
 * Date: 2025-03-14
 * Time: 10:42
 */
/*
* 读取配置文件
* */
@RestController
public class PropertiesController {
    @Value("${mykey.key1}")
    private String key1;
@GetMapping("/getKey")
    public String getKey(){
        return "读取到的值："+key1;
    }

}
